import request from '@/sheep/request';

export default {
  list: () =>
    request({
      url: 'Prize',
      method: 'GET',
    }),
	// 抽奖
  buy_financial: (data) =>
    request({
      url: 'Prize/draw',
      method: 'POST',
      data
    }),
	// 中奖记录
	prize_log: () =>
	  request({
	    url: 'Prize/prize_log',
	    method: 'GET'
	  }),
  // 中奖返利明细
  user_prize_log: (id) =>
	request({
	  url: 'Prize/user_prize_log',
	  method: 'GET',
	  params: {
		ids: id
	  },
	}),
	// 中奖返利明细
	user_financial: (id) =>
		request({
		  url: 'goods.financial/user_financial',
		  method: 'GET',
		  params: {
			ids: id
		  },
		}),
};
